package com.tm.media.login.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tm.media.login.service.IAdUserOpertionService;
import com.tm.media.model.dtos.ResponseResult;
import com.tm.media.model.entity.AdUserOpertion;
import com.tm.media.model.mapper.AdUserOpertionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 管理员操作行为信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-10
 */
@Service
public class AdUserOpertionServiceImpl extends ServiceImpl<AdUserOpertionMapper,AdUserOpertion> implements IAdUserOpertionService {
    @Autowired
    private AdUserOpertionMapper adUserOpertionMapper;

    @Override
    public ResponseResult selectList(Integer pageNum, Integer pageSize) {
        IPage<AdUserOpertion> iPage = new Page<AdUserOpertion>();
        iPage.setCurrent(pageNum);
        iPage.setSize(pageSize);
        IPage<AdUserOpertion> adUserIPage = baseMapper.selectPage(iPage, null);
        return ResponseResult.okResult(adUserIPage);
    }
}
